@extends('admin.app')

@section('breadcrumb')
<div class="bg-light lter b-b wrapper-md">
  <ol class="breadcrumb bg-light lter m-n no-padder">
    <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
    <li>网站管理</li>
    <li><a href="{{ admin_action('Web\MessagesController@index') }}">消息管理</a></li>
    <li class="active">{{ $message->title }}</li>
  </ol>
</div>
@endsection

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      消息信息
    </div>
    <div class="panel-body">
      <form class="form-horizontal">
            <div class="form-group">
              <label class="col-sm-2 text-right">标题*:</label>
              <div class="col-sm-7">
                {{$message->title}}
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 text-right">发布时间*:</label>
              <div class="col-sm-7">
                {{$message->published_at}}
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 text-right">发布人*:</label>
              <div class="col-sm-7">
                {{$message->announcer}}
              </div>
            </div>
            <div class="line line-dashed b-b line-lg"></div>
            <div class="form-group">
              <label for="inputOx" class="col-sm-2 text-right">内容</label>
              <div class="col-sm-7">
                {!! $message->content !!}
              </div>
            </div>
            <div class="line line-dashed b-b line-lg"></div>
            <div class="form-group">
              <label for="inputUser" class="col-sm-2 text-right">接收人*</label>
              <div class="col-sm-7">
                @foreach($old_receivers as $user)
                  {{ $user->username }}&nbsp;
                @endforeach
              </div>
            </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="{{ admin_action('Web\MessagesController@index') }}" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection